<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{$person}</title>
    {include file="inset/head/head_css.tpl"}
    {include file="inset/head/head_js.tpl"}
</head>
<body>
    	
   
    <div class="wrapper">
        {include file="inset/header.tpl"}
        
        {include file="inset/menu/vermenu.tpl"}
	
        <div class="content">
	    <div class="toolbar">
		<div title="Обновить" id="toolbar_refresh_order" class="toolbar_button refresh"></div>
		<div title="Сохранить" id="toolbar_save_order" class="toolbar_button save"></div>
		<div title="Печать"  id="toolbar_print_order" class="toolbar_button print"></div>
		<div title="Сформировать отчёт" id="toolbar_report_order" class="toolbar_button report"></div>
	    </div><!--toolbar-->
	    
            <div class="detailed">
		<form>
		    <div class="cl_data">
			<div><label>Код заказа:</label></div>
			<div><input id="id" style="width:130px;" type="text" readonly class="readonly" value="{$order_data.0.id}"/></div>
		    </div>
		    <div class="cl_data">
			<div><label>ФИО:</label></div>
			<div><input id="name" readonly class="readonly" type="text" value="{$order_data.0.name}"/></div>
		    </div>
		    <div class="cl_data">
			<div><label>Категория:</label></div>
			<div>
			    <select class="validate[required]"  id="id_category">
			    {for  $i=0 to $categories|@count-1}
				{if $order_data.0.category ==$categories.$i.name}
				<option value="{$categories.$i.id}" selected>{$categories.$i.name}</option>
				{else}
				<option value="{$categories.$i.id}">{$categories.$i.name}</option>
				{/if}
			    {/for}
			    </select>
			</div>
		    </div>
		    <div class="cl_data">
			<div><label>Производитель:</label></div>
			<div>
			    <select class="validate[required]"  id="id_fabricator">
			    {for  $i=0 to $fabricator|@count-1}
				{if $order_data.0.fabricator == $fabricator.$i.name}
				<option value="{$fabricator.$i.id}" selected>{$fabricator.$i.name}</option>
				{else}
				<option value="{$fabricator.$i.id}">{$fabricator.$i.name}</option>
				{/if}
			    {/for}
			    </select>
			</div>
		    </div>
		    <div class="cl_data">
			<div><label>Название продукта:</label></div>
			<div>
			    <select class="validate[required]"  id="product">
			    {for  $i=0 to $product|@count-1}
				{if $order_data.0.product ==$product.$i.name}
				<option value="{$product.$i.id}" selected>{$product.$i.name}</option>
				{else}
				    <option value="{$product.$i.id}">{$product.$i.name}</option>
				{/if}
			    {/for}
			    </select>
			</div>
		    </div>
		    <div class="cl_data">
			<div><label>Дата создания заказа:</label></div>
			<div><input id="date_create" readonly class="readonly" type="text" value="{$order_data.0.date_create}"/></div>
		    </div>
		    <div class="cl_data">
			<div><label>Дата отправки:</label></div>
			<div><input id="date_ship" type="text"  class="validate[validate[required]]" readonly class="date_ship"  value="{$order_data.0.date_ship}"/></div>
		    </div>
		    <div class="cl_data">
			<div><label>Количество на складе:</label></div>
			<div><input id="count" class="validate[required,custom[integer]]"  type="text" value="{$order_data.0.count}"/></div>
		    </div>
		    <div class="cl_data">
			<div><label>Скидка:</label></div>
			<div><input id="discont" class="validate[required,custom[number]]"  type="text" value="{$order_data.0.discont}"/></div>
		    </div>
		    <div class="cl_data">
			<div><label>Сайт:</label></div>
			<div>
			    <select class="validate[required]"  id="site">
			    {for  $i=0 to $site|@count-1}
				{if $order_data.0.site ==$site.$i.name}
				<option value="{$site.$i.id}" selected>{$site.$i.name}</option>
				{else}
				    <option value="{$site.$i.id}">{$site.$i.name}</option>
				{/if}
			    {/for}
			    </select>
			</div>
		    </div> 
		      
		</form>
            </div><!--detailed-->
	    <div class="cl_orders">
	    </div>
	</div>
    </div>
    {include file="inset/footer.tpl"}
</body>
</html>
